package com.whsxt.feign.hystrix;

import com.whsxt.domain.Order;
import com.whsxt.feign.PayOrderFeign;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Component;

/**
 * @Author: caoqingwen
 * @CreateTime: 2021-03-30 11:38
 * @Description:
 */
@Component
@Slf4j
public class PayOrderFeignHystrix implements PayOrderFeign {


    @Override
    public Order getOrderByOrderNum(String orderNum) {
        log.error("远程调用获取订单信息失败");
        return null;
    }

    @Override
    public void changeStatusByOrderNum(String orderNum) {
        log.error("修改订单状态失败");
    }
}
